<?php
/**
 * ExtRadioGroup class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtRadioGroup extends ExtCheckboxGroup
{
    /**
     * Gets the value of ExtJS allowBlank property
     * @return Boolean 
     */
    public function getAllowBlank()
    {
    	return $this->getConfig("allowblank");
    }

    /**
     * Sets the value of ExtJS allowBlank property
     * @param Boolean $value 
     */
    public function setAllowBlank($value)
    {
    	$this->setConfig("allowblank",$value);
    }

    /**
     * Gets the value of ExtJS blankText property
     * @return String 
     */
    public function getBlankText()
    {
    	return $this->getConfig("blanktext");
    }

    /**
     * Sets the value of ExtJS blankText property
     * @param String $value 
     */
    public function setBlankText($value)
    {
    	$this->setConfig("blanktext",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'allowblank' => 'allowBlank',
            'blanktext' => 'blankText'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'change' => array('sender','checked')
        ));


        $this->setXType('radiogroup');
        $this->setXClass('Ext.form.RadioGroup');
    }    
}
?>